﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FoodSortList.aspx.cs" Inherits="shop_FoodSortList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Src="~/Banner.ascx" TagPrefix="top" TagName="banner" %>
<%@ Register Src="~/header.ascx" TagName="banner" TagPrefix="uc1" %>
<%@ Register Src="~/Foot.ascx" TagPrefix="foot" TagName="foot" %>
<%@ Register Src="~/shop/Left.ascx" TagName="LeftBanner" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>餐品类别-<%= WebUtility.GetWebName()%></title>

    <link href="/user/css/userinfo.css" rel="stylesheet" type="text/css" />
    <link href="/css/common.css" rel="stylesheet" type="text/css" />
    <link href="/css/style.css" rel="stylesheet" type="text/css" />
    <link href="/user/css/common.css" rel="stylesheet" type="text/css" />

    <script src="../JavaScript/DatePicker/WdatePicker.js" type="text/javascript"></script>

    <link href="Style/divDialog.css" rel="stylesheet" type="text/css" />

    <script src="../JavaScript/jquery-1.3.2.js" type="text/javascript"></script>

    <script src="../JavaScript/ShowDivDialog.js" type="text/javascript"></script>

    <script src="../JavaScript/tinybox.js" type="text/javascript"></script>
    <script type="text/javascript">
     $(document).ready(function () {
            initshopnav(4);
            
        })
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <top:banner ID="Banner1" runat="server" />
                <uc1:banner ID="Banner2" runat="server" />
                <div class="shop_containner clearfix">
                    <uc2:LeftBanner runat="server" ID="Left" />
                    <div class="shop_main">
                        <div class="main-content">

                            <div class="shop_menu">
                             <ul><li class="cur" ><a href="FoodSortList.aspx?">餐品类别列表</a></li>
                                 <li ><a href="FoodSortDetail.aspx">添加餐品类别</a></li>
                                 <li ><a href="FoodList.aspx">餐品列表</a></li>
                                 <li ><a href="FoodDetail.aspx">添加餐品</a></li>

                             </ul>
                                </div>
                            <%--<h1 class="topbg">商家餐品类别</h1>--%>
                            <div class="usermima">
                                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="listorder_table"
                                    style="border: 1px solid #ccc;">
                                    <asp:Repeater ID="rptFoodSortList" runat="server" OnItemCommand="rptFoodSortList_ItemCommand">
                                        <HeaderTemplate>
                                            <tr>
                                                <th>类别名称
                                                </th>
                                                <th style="width: 20%;">排序
                                                </th>
                                                <th style="width: 20%;">操作
                                                </th>
                                            </tr>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <tr>
                                                <td>
                                                    <%#Eval("SortName")%>
                                                </td>
                                                <td>
                                                    <%# Eval("jorder")%>
                                                </td>
                                                <td>
                                                    <asp:LinkButton ID="lbtdelete" runat="server" CommandName="del" OnClientClick="return  confirm('确定删除吗？')"
                                                        CommandArgument='<%#Eval("SortID")%>'>删除</asp:LinkButton>
                                                    |
                                                    <asp:LinkButton ID="lbtupdate" runat="server" CommandName="update" CommandArgument='<%#Eval("SortID")%>'>修改</asp:LinkButton>
                                                </td>
                                            </tr>
                                        </ItemTemplate>
                                        <FooterTemplate>
                                            <tr>
                                            </tr>
                                        </FooterTemplate>
                                    </asp:Repeater>
                                </table>
                            </div>
                            <div id="noRecord" runat="server" class="no_infor">
                                暂无餐品类别！
                            </div>
                            <div class="pages">
                                <webdiyer:AspNetPager CssClass="anpager" ID="AspNetPager1" runat="server" Width="100%"
                                    CustomInfoHTML="共有记录 <font>%RecordCount%</font> 条 当前为 <font>%CurrentPageIndex%</font>/<font>%PageCount%</font> 页"
                                    HorizontalAlign="Right" ShowCustomInfoSection="Left" CustomInfoTextAlign="Right"
                                    CustomInfoSectionWidth="28%" ShowPageIndexBox="Always" PageIndexBoxType="TextBox"
                                    TextBeforePageIndexBox="转到 " OnPageChanged="AspNetPager1_PageChanged" PageIndexBoxClass="flattext"
                                    ShowPageIndex="True" PageSize="20" SubmitButtonClass="flatbutton" SubmitButtonText=" GO "
                                    TextAfterPageIndexBox=" 页 " Wrap="False">
                                </webdiyer:AspNetPager>
                            </div>
                        </div>
                    </div>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
        <foot:foot runat="server" ID="foot" />
    </form>
</body>
</html>
